package com.haopeng.consumer.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 微服务调用demo
 * @author Administrator
 *
 */
@EnableSwagger2
@EnableFeignClients(basePackages= {"com.haopeng.producer.api"})
@ComponentScan(basePackages= {"com.haopeng.common","com.haopeng.consumer.demo"})
@SpringBootApplication
public class DemoConsumerStartup {

	public static void main(String[] args) {
		SpringApplication.run(DemoConsumerStartup.class, args);
	}
}
